<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Landing extends Backend_Controller {

	protected $_title = 'SIUL';

	public function __construct() {
		parent::__construct();
		if(parent::get_actor_login()!="student")
			redirect('login/index/1');
		$this->load->model('teachings_model', 'teachings', true);
		$this->load->model('school_years_model', 'school_years', true);
		$this->load->model('users_model', 'users', true);
	}
		
	public function index() {	
		$rs = $this->school_years->get_active_school_year();
				
		$data = array(
			'mainview' => 'index'
		) + $this->_get_header_data();
		$this->load->view('student/template',$data);
	}

}
